WrĊith
Enthusiast
Registered: 01/31/02
Posts: 310
Loc: California, USA
Name: CustomTitle v1.0 <br /> <br />Description: Allows your users to specify a custom title to display beneath their username on their posts. Users can edit their title in their "My Home" settings. <br /> <br />Example:http://www.terranbbs.com/testboard/ubbthreads.php (Username: test / Password: test) <br /> <br />Link:http://www.terranbbs.com/ubb/mods/6.0/CustomTitle.txt <br /> <br />Special Thanks: To the many members of my board who prompted me to create this by constantly asking for custom titles. <br /> <br />Future Improvements: Adding the ability to specify a number of posts that a user must reach before having the ability to change their title with the configuration taking place in the admin control panel. <br /> <br />
AllenAyres
I type Like navaho
Registered: 03/10/00
Posts: 25580
Loc: Texas
Hey, nice <img src="/forum/images/icons/smile.gif" alt="" /><br /><br />Can you link to an image in there or use html? Just asking <img src="/forum/images/icons/smile.gif" alt="" />
WrĊith
Enthusiast
Registered: 01/31/02
Posts: 310
Loc: California, USA
Right now I have it stripping out the HTML, but theoretically you could indeed. I was thinking about that very thing since I frequent a number of Sci-Fi boards that use small rank images underneath the name. <br /><br />One other possible enhancement would be to allow the use of images below the name and then tie it to a particular group so that a user could pick a particular group such as Klingon and it would display Klingon rank images beneath their name.<br /><br />I gotta tell 'ya that the new version of this software makes these kind of "tweaks" a breeze. This one took me about 30 minutes. The longest part was just tracing the "path" of the files I'd need to change.
umm... it's weird..<br />i followed all the instructions and the database doesn't update when i try to change the title... i'm using the final copy of 6.0...
WrĊith
Enthusiast
Registered: 01/31/02
Posts: 310
Loc: California, USA
I suppose it's possible I missed a line I changed. I've done it on two boards and it's worked fine. Let me do a line-by-line comparrison with a clean copy and see if there's something I missed in the instructions.
<blockquote><font class="small">Writes WrĊith:</font><hr> I suppose it's possible I missed a line I changed. I've done it on two boards and it's worked fine. Let me do a line-by-line comparrison with a clean copy and see if there's something I missed in the instructions. <hr /></blockquote><br /><br />Thanks again!
WrĊith
Enthusiast
Registered: 01/31/02
Posts: 310
Loc: California, USA
Yep, call me an idiot! I missed the whole part where the info gets added to the database. <img src="/forum/images/icons/blush.gif" alt="" /><br /><br />I've updated the instructions. You'll want to do Part Two, Steps 3, 4, and 5.
JoshPet
I type Like navaho
Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Very cool.<br /><br />How difficult would it be to make it so that only certain groups had this power??<br /><br />We allow members who donate to support our site to have a custom title. Currently the Admins have to make the change now. It would be cool if once they are in the "contributor" usergroup, they could do it themselves... but regular users didnt' have that 'power'.
WrĊith
Enthusiast
Registered: 01/31/02
Posts: 310
Loc: California, USA
Wouldn't be hard at all actually. I was already thinking about doing something similar to this only based on the number of posts instead of group.<br /><br />To do it, you'd want to create some sort of variable in config.inc.php that specifies the group number that you want to grant access to. You'd then modify the query in editbasic.php to extract their group information from the database and assign it to a variable. Then you would create an IF statement in changebasic.php that compares the group variable to the config variable. If they're equal it proceeds, if not, it spits out an error message saying they need to contribute or something.<br /><br />Really wouldn't take much to be honest with you. <img src="/forum/images/icons/smile.gif" alt="" />
WrĊith
Enthusiast
Registered: 01/31/02
Posts: 310
Loc: California, USA
That might take a bit. I've got to figure out how the config.inc.php captures and stores the variables that are assigned. I want the post number to be something that you can configure via the admin control panel. I could easily set it up to work with just a statement in the file itself, but that isn't elegant enough for me. <img src="/forum/images/icons/laugh.gif" alt="" /><br /><br />I'll mess around with it some more over the next day or so. <img src="/forum/images/icons/smile.gif" alt="" />
HMM so this does not create a new custom title field like its UBB counterpart. I see it only writes over your current title which one can change anyway.
WrĊith
Enthusiast
Registered: 01/31/02
Posts: 310
Loc: California, USA
It allows the user to specify what they wish to have in the U_Title field. Previously this was something that could only be changed by an Administrator as they were the only ones who could view a complete user profile via the Admin CP. What this hack does is allow the board member to change their own title via the same interface that they already are familiar with for changing their personal settings such as their password and their signature.
It would be nice if this was converted to not replacing a title but adding another title A CUSTOM TITLE.<br /><br />UBB had a hack called this and it did not strip my admin title, So my title was administrator and underneath custom title let me specify something else cool. <img src="/forum/images/icons/wink.gif" alt="" /><br />
WrĊith
Enthusiast
Registered: 01/31/02
Posts: 310
Loc: California, USA
It wouldn't be hard. You'd have to add another field to the w3t_Users table. Perhaps calling it U_Title2. You would then follow the same procedure as outlined in my instructions, only substituting U_Title2 for U_Title when it is specified in the query string in editbasic.php.